import request from './request.js'

// 删除企业
export function removeCompany (data) {
  return request({
    url: '/enterprise/remove',
    method: 'post',
    data
  })
}

// 企业编辑
export function editCompany (data) {
  return request({
    url: '/enterprise/edit',
    method: 'post',
    data
  })
}

// 修改企业状态
export function statusCompany (data) {
  return request({
    url: '/enterprise/status',
    method: 'post',
    data
  })
}

// 新增企业
export function addCompany (data) {
  return request({
    url: '/enterprise/add',
    method: 'post',
    data
  })
}

// 获取企业列表
export function companyList (params) {
  return request({
    url: '/enterprise/list',
    method: 'get',
    params
  })
}
